package cn.i7baozh.dto;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zhangbaoqi532
 * @date 2025/1/13
 */
//@Component // 这里不需要Component注解
@ConfigurationProperties("hi.service")
public class HiPropertiesDTO {

    /**
     * 名称
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "{" +
                "name:\"" + name + '\"' +
                ", age:" + age +
                '}';
    }
}
